#ifndef QNETWORKGAME_H
#define QNETWORKGAME_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>
#include <QPushButton>
#include <QPainter>
#include <QMessageBox>
#include <QtNetwork>
#include "joingame.h"
#include "netgame.h"

class qnetworkgame : public QWidget
{
    Q_OBJECT
public:
    explicit qnetworkgame(QWidget *parent = nullptr);
    void new_room(void);
    void join_room(void);
    netgame* game2;
    QTcpSocket* tcpsocket;


public slots:

private:
    QTcpServer* tcpserve;

    joingame* join1;


signals:
    void back_main();
    void exit_game();
};

#endif // QNETWORKGAME_H
